<template>
  <div id="withdrawUSDT">
    <div class="withdrawUSDT-box">
      <NavBar title="USDT提现" left-arrow @click-left="onClickLeft" />
      <div class="withdrawUSDT-head">USDT提现</div>
      <Form @submit="onSubmit">
        <div class="withdrawUSDT-link">
          <div class="link-text">链地址</div>
          <div class="link-body">ERC20</div>
        </div>
        <div class="withdrawUSDT-site">
          <div class="site-text">提币地址</div>
          <div class="site-body">
            <Field
              v-model="site"
              name="提币地址"
              placeholder="请输入提币地址"
              @click="onsite"
            />
          </div>
        </div>
        <div class="withdrawUSDT-quantity">
          <div class="quantity-text">提币数量</div>
          <div class="quantity-body">
            <Field
              v-model="quantity"
              name="提币数量"
              placeholder="请输入提币数量"
            />
          </div>
          <div class="quantity-usable">可用：1151.94USDT</div>
        </div>
        <div class="withdrawUSDT-password">
          <div class="password-text">提现密码</div>
          <div class="password-body">
            <Field
              v-model="quantity"
              name="提现密码"
              placeholder="请输入提现密码"
            />
          </div>
        </div>
        <div class="withdrawUSDT-procedure">
          <div class="procedure-text">手续费</div>
          <div class="procedure-body">
            <Field v-model="procedure" name="手续费" placeholder="手续费 1%" />
          </div>
        </div>
        <div style="margin: 16px">
          <div class="predict">预计到账数量：0.0000USDT</div>
          <Button round block type="info" native-type="submit">提交</Button>
        </div>
      </Form>
    </div>
  </div>
</template>
<script>
import { NavBar, Form, Field, Button } from "vant";
export default {
  components: {
    NavBar,
    Form,
    Field,
    Button,
  },
  data() {
    return {
      site: '', // 提币地址
      quantity: '', // 提币数量
      password: '', // 提现密码
      procedure: '', // 手续费默认1%
    };
  },
  created() {},
  methods: {
    // 返回
    onClickLeft() {
      this.$router.go(-1);
    },

    // 提交
    onSubmit(values) {
      console.log('submit', values);
    },

    // 点击提币地址
    onsite() {
      console.log('跳转提币地址');
      this.$router.push({
        path: '/site',
      })
}
  },
};
</script>
<style lang="less" scoped>
#withdrawUSDT {
  width: 100vw;
  height: 100vh;
  background-color: #f7f6fb;
  .withdrawUSDT-box {
    background-color: #fff;
    padding-bottom: 10px;
    .withdrawUSDT-head {
      height: 30px;
      line-height: 30px;
      font-size: 14px;
      border-bottom: #e5e5e5 1px solid;
      background-color: #fff;
      width: 90%;
      margin: 10px;
      margin-top: 20px;
    }
    .withdrawUSDT-link {
      .link-text {
        height: 10px;
        margin-left: 10px;
        margin-top: 10px;
        line-height: 10px;
      }
      .link-body {
        width: 90%;
        height: 40px;
        border: #578af7 1px solid;
        border-radius: 5px;
        margin: 10px auto;
        color: #578af7;
        line-height: 40px;
        text-align: center;
      }
    }
    .withdrawUSDT-site {
      .site-text {
        height: 10px;
        margin-left: 10px;
        margin-top: 10px;
        line-height: 10px;
      }
      .site-body {
        /deep/.van-field__body {
          background-color: #f7f6fb;
          height: 40px;
          width: 345px;
          border-radius: 5px;
          padding-left: 5px;
          margin-left: -5px;
        }
      }
    }
    .withdrawUSDT-quantity {
      border-bottom: solid 1px #e5e5e5;
      .quantity-text {
        height: 10px;
        margin-left: 10px;
        margin-top: 10px;
        line-height: 10px;
      }
      .quantity-body {
        /deep/.van-field__body {
          background-color: #f7f6fb;
          height: 40px;
          width: 345px;
          border-radius: 5px;
          padding-left: 5px;
          margin-left: -5px;
        }
      }
      .quantity-usable {
        margin-left: 10px;
        margin-bottom: 5px;
      }
    }
    .withdrawUSDT-password {
      .password-text {
        height: 10px;
        margin-left: 10px;
        margin-top: 10px;
        line-height: 10px;
      }
      .password-body {
        /deep/.van-field__body {
          background-color: #f7f6fb;
          height: 40px;
          width: 345px;
          border-radius: 5px;
          padding-left: 5px;
          margin-left: -5px;
        }
      }
    }
    .withdrawUSDT-procedure {
      .procedure-text {
        height: 10px;
        margin-left: 10px;
        margin-top: 10px;
        line-height: 10px;
      }
      .procedure-body {
        /deep/.van-field__body {
          background-color: #f7f6fb;
          height: 40px;
          width: 345px;
          border-radius: 5px;
          padding-left: 5px;
          margin-left: -5px;
        }
      }
    }
    .predict {
      text-align: center;
      color: #007aff;
      margin: 10px auto;
      font-size: 16px;
    }
  }
}
</style>